package com.haiyan.demo13_构造方法的概述和定义;

public class Test {
    public static void main(String[] args) {
        Student stu1=new Student();
        System.out.println(stu1.getName()+","+stu1.getAge());

        Student stu2=new Student("张三",18);
        System.out.println(stu2.getName()+","+stu2.getAge());

        stu2.setName("冰冰");
        System.out.println(stu2.getName());

        stu2.setName("小泽");
        System.out.println(stu2.getName());

    }
}
